package net.lahuobao.finance.entity.accountrecord;

/**
 * Created by fyu1 on 15/4/7.
 * <p/>
 * TODO 临时  1待支付,2支付成功,3支付失败...6提现申请(后台待审核),10提现-后台已审核 16提现成功
 * int ACCOUNT_RECORD_STATUS_WAITPAY=1;
 * int ACCOUNT_RECORD_STATUS_SUCCESS=2;
 * int ACCOUNT_RECORD_STATUS_FAILED=3;
 * int ACCOUNT_RECORD_STATUS_WITHDRAW_APPLY=6;
 * int ACCOUNT_RECORD_STATUS_WITHDRAW_AUDITED=10;
 * int ACCOUNT_RECORD_STATUS_WITHDRAW_SUCCESS=16;
 * int ACCOUNT_RECORD_STATUS_WITHDRAW_AUDIT_REJECT=51;
 */
public enum EAccountRecordStatus {
    ACCOUNT_RECORD_STATUS_WAITPAY {
        public String getName() {
            return "待支付";
        }

        public Short getValue() {
            return 1;
        }
    },
    ACCOUNT_RECORD_STATUS_SUCCESS {
        public String getName() {
            return "支付成功";
        }

        public Short getValue() {
            return 2;
        }
    },

    ACCOUNT_RECORD_STATUS_FAILED {
        public String getName() {
            return "支付失败";
        }

        public Short getValue() {
            return 3;
        }
    },
    ACCOUNT_RECORD_STATUS_WITHDRAW_APPLY {
        public String getName() {
            return "提现申请(后台待审核)";
        }

        public Short getValue() {
            return 6;
        }
    },
    ACCOUNT_RECORD_STATUS_WITHDRAW_AUDITED {
        public String getName() {
            return "提现-后台已审核";
        }

        public Short getValue() {
            return 10;
        }
    },
    ACCOUNT_RECORD_STATUS_WITHDRAW_SUCCESS {
        public String getName() {
            return "提现成功";
        }

        public Short getValue() {
            return 16;
        }
    },
    ACCOUNT_RECORD_STATUS_WITHDRAW_AUDIT_REJECT {
        public String getName() {
            return "提现-后台已驳回";
        }
        public Short getValue() {
            return 51;
        }
    }, ACCOUNT_RECORD_STATUS_REPAY_SUCCESS {
        public String getName() {
            return "还款成功";
        }

        public Short getValue() {
            return 17;
        }
    }, ACCOUNT_RECORD_STATUS_DONE {
        public String getName() {
            return "已完成";
        }

        public Short getValue() {
            return 18;
        }
    };

    public abstract String getName();

    public abstract Short getValue();
}
